package com.lagou.homework3;

/**
 *
 * 火车买票案例 (两种实现方式) : 共100张票,三个线程一起卖票,不允许出现出现负票和多卖的现象(Thread方式)
 */
public class TicketTest {

    public static void main(String[] args) {
        Ticket t1 = new Ticket();
        t1.start();
        Ticket t2 = new Ticket();
        t2.start();
        Ticket t3 = new Ticket();
        t3.start();
    }
}
